package com.medical_backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Date;

@TableName("payment")
public class Payment {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String cardId;
    private String insuredName;
    private Date date;

    public Payment() {
    }

    public Payment(Long id, String cardId, String insuredName, Date date) {
        this.id = id;
        this.cardId = cardId;
        this.insuredName = insuredName;
        this.date = date;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getInsuredName() {
        return insuredName;
    }

    public void setInsuredName(String insuredName) {
        this.insuredName = insuredName;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Payment{" +
                "id=" + id +
                ", cardId='" + cardId + '\'' +
                ", insuredName='" + insuredName + '\'' +
                ", date=" + date +
                '}';
    }
}
